import logging 
l = logging.getLogger()
fh = logging.StreamHandler()
fh.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s, %(levelname)s, %(message)s')
fh.setFormatter(formatter)
l.addHandler(fh)
#
p = logging.getLogger('cache')
p.setLevel(logging.DEBUG)
fh = logging.StreamHandler()
fh.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s, %(name)s, %(levelname)s, %(message)s')
fh.setFormatter(formatter)
p.addHandler(fh)
c = logging.getLogger('cache')
c.debug("debug")


#r = logging.getLogger() 
#ch = logging.StreamHandler() 
#ch.setLevel(logging.DEBUG) 
#formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') 
#ch.setFormatter(formatter) 
#r.addHandler(ch) 
# 
#p = logging.getLogger('cache') 
#p.setLevel(logging.DEBUG) 
#ch = logging.StreamHandler() 
#ch.setLevel(logging.DEBUG) 
#formatter = logging.Formatter('%(asctime)s - %(message)s') 
#ch.setFormatter(formatter) 
#p.addHandler(ch) 
#c = logging.getLogger('cache') 
#c.debug("ooooo:w") 
